package com.xunji.xunji.module.trace.mvp.model;

import com.huanxiao.base.net.HttpClient;
import com.huanxiao.base.net.RespResult;
import com.xunji.xunji.module.account.bean.MyTrace;
import com.xunji.xunji.net.APIService;

import java.util.List;
import java.util.Map;

import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * Created by Paul on 2017/2/27.
 */

public class TrackModel {


    public Observable<RespResult> createTrackAllInfo( Map<String, String> params){

        return HttpClient.getAPIService(APIService.class).createTrackAllInfo(params);
    }


    public Observable<RespResult<List<MyTrace>>> queryAllByUserId(Map<String,String> params){
        return HttpClient.getAPIService(APIService.class).queryAllByUserId(params);
    }
}
